<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改项目收益')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-profit-edit" th:object="${appProfitInfo}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">日期：</label>
            <div class="col-sm-8">
                <input name="dateInfo" th:field="*{dateInfo}" class="form-control" type="text" readonly required>
            </div>
        </div>
        <!--            <div class="form-group">    -->
        <!--                <label class="col-sm-3 control-label is-required">贷超：</label>-->
        <!--                <div class="col-sm-8">-->
        <!--                    <input name="dcProfit" th:field="*{dcProfit}" class="form-control" type="text" required>-->
        <!--                </div>-->
        <!--            </div>-->
        <!--            <div class="form-group">    -->
        <!--                <label class="col-sm-3 control-label is-required">助贷：</label>-->
        <!--                <div class="col-sm-8">-->
        <!--                    <input name="zdProfit" th:field="*{zdProfit}" class="form-control" type="text" required>-->
        <!--                </div>-->
        <!--            </div>-->


        <div class="form-group">
            <label class="col-sm-3 control-label is-required">产品uv收益：</label>
            <div class="col-sm-8">
                <input name="prodUvProfit" th:field="*{prodUvProfit}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">联登收益：</label>
            <div class="col-sm-8">
                <input name="prodUnionProfit" th:field="*{prodUnionProfit}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">表单收益：</label>
            <div class="col-sm-8">
                <input name="pushFormProfit" th:field="*{pushFormProfit}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">推送收益：</label>
            <div class="col-sm-8">
                <input name="pushSpecialProfit" th:field="*{pushSpecialProfit}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">风控成本：</label>
            <div class="col-sm-8">
                <input name="riskCostAmount" th:field="*{riskCostAmount}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">线索：</label>
            <div class="col-sm-8">
                <input name="sourceCostAmount" th:field="*{sourceCostAmount}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">uv成本：</label>
            <div class="col-sm-8">
                <input name="channelUvCostAmount" th:field="*{channelUvCostAmount}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">注册成本：</label>
            <div class="col-sm-8">
                <input name="channelRegisterCostAmount" th:field="*{channelRegisterCostAmount}" class="form-control" type="text">
            </div>
        </div>

    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "profit/profit";
    $("#form-profit-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-profit-edit').serialize());
        }
    }
</script>
</body>
</html>